package com.woniu.function.mapper;

import com.woniu.function.pojo.Illegally;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 车辆违章表 Mapper 接口
 * </p>
 *
 * @author 何荣卓
 * @since 2023-02-22
 */
public interface IllegallyMapper extends BaseMapper<Illegally> {

    @Select("select * from t_illegally where user_id = #{userId} and car_id = #{carId}")
    List<Illegally> selectIllegally(@Param("userId") String userId, @Param("carId") String carId);
}
